package com.haiyou.dc.es.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author pc
 */
public class EsConstant {

    public static final String BOOK_INDEX_NAME = "book";
    public static final String BOOK_TYPE_NAME = "novel";

    public static final String XUNWU_INDEX_NAME = "xunwu";
    public static final String XUNWU_TYPE_NAME = "house";

    /**
     * kafka主题名称
     */
    public static final String XUNWU_TOPIC_NAME = "abc";

    /**
     * 百度地图API
     */
    private static final String BAIDU_MAP_KEY = "6QtSF673D1pYl3eQkEXfwp8ZgsQpB77U";
    private static final String BAIDU_MAP_GEOCONV_API = "http://api.map.baidu.com/geocoder/v2/?";

    /**
     * 行政级别定义
     */
    @Getter
    @AllArgsConstructor
    public enum Level {
        CITY("city"),
        REGION("region");

        private String value;
    }
}
